* {
  border: none;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-weight: 600;
  font-size: 14px;
}

.todo-list > * {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
}

.todo-list > footer > *,
.todo-add-item {
  margin-left: 24px;
  cursor: pointer;
}

.todo-list > footer > *:hover,
.todo-add-item:hover {
  background: #bbb;
}

.todo-list > footer > *:active,
.todo-add-item:active {
  background: #333;
  color: #FFF;
}

.todo-list > footer > *:first-child {
  margin-left: 0;
}

.todo-list,
.todo-input,
.todo-add-item,
.todo-item-list,
.todo-select-all,
.todo-select-complete,
.todo-select-active {
  border: 2px solid #000;
  box-shadow: 2px 4px 0 1px #000;
  background-color: #fff;
  padding: 4px 8px;
  display: inline-flex;
}

.todo-list {
  width: 100%;
  height: 100%;
  padding: 24px 16px;
  display: block;
  flex-wrap: nowrap;
  flex-direction: column;
  background-color: #f9f9f9;
}

.todo-input {
  box-shadow: none;
  flex-grow: 1;
}

.todo-add-item {
  width: auto;
}

.todo-item-list {
  width: 100%;
  flex-grow: 1;
  height: calc(100% - 48px - 56px);
  margin: 24px 0;
  padding-left: 18px;
  /* display: block; */
  flex-direction: column;
  overflow-y: scroll;
}

.todo-item-list::-webkit-scrollbar-track-piece {
  background-color: transparent;
}

.todo-item-list::-webkit-scrollbar-button {
  height: 0;
  background-color: transparent;
}

.todo-item-list::-webkit-scrollbar {
  width: 8px;
  height: auto;
  min-height: 32px;
  max-height: 50%;
  margin-right: 2px;
}

.todo-item-list::-webkit-scrollbar-thumb {
  background-color: #000;
}

.todo-item-list::-webkit-scrollbar-thumb:hover {
  background-color: #444;
}

.todo-item-list::-webkit-scrollbar-thumb:active {
  background-color: #222;
}

.todo-item-active,
.todo-item-complete {
  cursor: pointer;
  padding: 4px 2px;
}

.todo-item-complete {
  color: #bbb;
  text-decoration: line-through;
}

.todo-item-active:hover,
.todo-item-complete:hover {
  background-color: #eee;
  text-decoration: line-through;
}

.todo-item-active::before,
.todo-item-complete::before {
  display: inline-block;
  width: 24px;
  height: 24px;
  border: 2px solid #000;
  text-align: center;
  font-weight: 600;
  margin-right: 8px;
  font-size: 20px;
  line-height: 20px;
}

.todo-item-active::before {
  content: "×";
}

.todo-item-complete::before {
  content: "√";
  border-color: #bbb;
  color: #bbb;
}
